package cn.yc.properties;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Properties_01 {
    public static void main(String[] args) throws IOException {
        // 传统的读取配置文件的方式

        // 读取文件并获取相关数据
        BufferedReader br = new BufferedReader(new FileReader("D:\\WorkSpace\\IO\\newfile\\src\\mysql.properties"));
        String line;
        while((line= br.readLine())!=null){
            String[] split = line.split("=");
            System.out.println(split[0]+"="+split[1]);
        }
        br.close();
        System.out.println("读取完毕！");
    }
}
